import { TableProps } from "antd"
export type TableRowSelection<T extends object = object> = TableProps<T>['rowSelection'];

export interface DataType extends IUserListItem {
    key: React.Key;

}

export interface IUserListItem {
    address: string;
    age: number;
    avatar: string;
    birthday: string;
    city: string[];
    id: number
    realname: string;
    sex: number;
    username: string
}

export interface IPageNavigiationProps{
    setPage:(page:number)=>void;
    setSize:(size:number)=>void;
    page:number;
    size:number;
    total:number;
}
export interface ITabelListProps{
    dataSource:DataType[];
    setSelecteList:(list:number[])=>void;
    selectList:number[];
    loading:boolean;
    setEditData:(data:DataType)=>void;
}